//
//  STDiscoverController.m
//  OCVVeibo
//
//  Created by leergou on 16/7/19.
//  Copyright © 2016年 WhiteHouse. All rights reserved.
//

#import "STDiscoverController.h"
#import "STSearchBar.h"

@interface STDiscoverController ()<UITableViewDelegate>

@property (nonatomic,strong) UIView *searchBar;


@end

@implementation STDiscoverController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"发现";
    
    [self setViewContentWithIconImgName:@"visitordiscover_image_message" title:@"登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过"];
    
    [self setupUI];
}

- (void)setupUI{
    self.navigationItem.titleView = [[STSearchBar alloc] init];
#warning - 现在可以拿了,父控制器把属性暴露了出来
    UITableView *tableView = (UITableView *)self.view;
//    tableView.delegate = self;
    
}

#pragma mark - tableView delegate
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
    [self.navigationItem.titleView endEditing:YES];
}


@end
